{{define "content"}}

    <div id="main">

        <!-- 面包屑导航 -->
        <div id="bread" class="box list sky-blue">
            <span class="left">
                <a href="/">{{.Gobbs.title}}</a>
                <img src="/images/divider.gif" />
                <a href="#">论坛设置</a>
                <img src="/images/divider.gif" />
                编辑资料
            </span>
        </div>

        <!-- 论坛资料 -->
        <div class="list">
            <h2 class="block_sub block_sub_line">
                <ul class="user_menu">
                    <li><a href="/user/{{.SessUserID}}">个人资料</a></li>
                    <li><a class="on">论坛设置</a></li>
                </ul>
            </h2>
            <div class="user_table mainbox">
                <div class="edit_menu">
                    <dl>
                        <dd><a class="on" href="/self/info">编辑资料</a></dd>
                        <dd><a href="/self/permission">用户权限</a></dd>
                        <dd><a href="/self/credit">积分记录</a></dd>

                    </dl>
                </div>
                <div class="edit_content">
<form method=post action="?act=do" name="form1">
						                    <table>
                        <tbody>
                            <tr>
                                <th>姓&nbsp;&nbsp;&nbsp;&nbsp;名</th>
                                <td>{{.User.Username}}</td>
                            </tr>
                            <tr>
                                <th>别&nbsp;&nbsp;&nbsp;&nbsp;名</th>
                                <td><input class="txt" type="text" name="alias" value="{{.User.Alias}}"></input> 不可以超过10个字符</td>
                            </tr>
                            <tr>
                                <th>来&nbsp;&nbsp;&nbsp;&nbsp;自</th>
                                <td><input class="txt" type="text" name="location" value="{{.User.Location}}"></input></td>
                            </tr>
                            <tr>
                                <th>头&nbsp;&nbsp;&nbsp;&nbsp;像</th>
                                <td>
                                    <span class="face"><img src="/images/avatars/{{.User.Photo}}" name="photo" width="80" height="80" border="0" alt=""></span>
<script>
function chk()
{
	imgs=document.form1.selects.value;
	if(imgs)
		document.form1.photo.src="/images/avatars/"+imgs;
}
</script>
                {{$UserPhoto := .User.Photo}}
				<select name="selects" onChange="chk()"  MULTIPLE SIZE=5  >
					<option value="">请选择头像</option>
					{{range .Filepic}}
					<option value="{{.}}" {{if eq $UserPhoto . }}selected{{end}}>{{.}}</option>
					{{end}}
				</select>
                                </td>
                            </tr>
                            <tr>
                                <th>签名状态</th>
                                <td>
								<input type="radio" name="sigstate" value="1" {{if eq .User.Sigstate 1}}checked{{end}}>显示
								<input type="radio" name="sigstate" value="0" {{if eq .User.Sigstate 0}}checked{{end}}>隐藏
</td>
                            </tr>
                            <tr>
                                <th>签&nbsp;&nbsp;&nbsp;&nbsp;名</th>
                                <td>
								<textarea name="sight" rows="4" cols="60" class="txt" style="width:70%; height:100px; overflow-y:auto;">{{.User.Sight}}</textarea>
								<br/>最大：<b>{{.Group.Maxsigsize}}</b>字节
								</td>
                            </tr>
                            <tr>
                                <th>&nbsp;</th>
                                <td><input class="submit" type="submit" value="提交修改" /></td>
                            </tr>
                        </tbody>
                    </table>
                    </form>
                </div>

            </div>
        </div>

    </div>
{{end}}

